// DlgWebPost.cpp : implementation file
//

#include "stdafx.h"
#include "TLWebLed.h"
#include "DlgWebPost.h"
#include "afxdialogex.h"


// CDlgWebPost dialog

IMPLEMENT_DYNAMIC(CDlgWebPost, CDialogEx)

CDlgWebPost::CDlgWebPost(CWnd* pParent /*=NULL*/)
	: CDialogEx(IDD_DLG_WEB_POST, pParent)
	, m_strRecv(_T(""))
	, m_strSend(_T(""))
{

}

CDlgWebPost::~CDlgWebPost()
{
}

void CDlgWebPost::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT_RECV, m_strRecv);
	DDX_Text(pDX, IDC_EDIT_SEND, m_strSend);
}


BEGIN_MESSAGE_MAP(CDlgWebPost, CDialogEx)
END_MESSAGE_MAP()


// CDlgWebPost message handlers


BOOL CDlgWebPost::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  Add extra initialization here

	return TRUE;  // return TRUE unless you set the focus to a control
				  // EXCEPTION: OCX Property Pages should return FALSE
}

void CDlgWebPost::setRecvMsg(char* pszRecv)
{
	m_strRecv = pszRecv;
	UpdateData(FALSE);
}

void CDlgWebPost::setSendMsg(char* pszSend)
{
	m_strSend = pszSend;
	UpdateData(FALSE);
}
